package com.wu.shop.module.home.ui.fragment

import android.os.Bundle
import android.view.View
import androidx.databinding.ViewDataBinding
import com.wu.common.base.ui.fragment.MvpBaseFragment
import com.wu.shop.R
import com.wu.shop.databinding.FragmentHomeBinding
import com.wu.shop.module.home.frame.presenter.HomePresenter
import com.wu.shop.module.home.frame.view.HomeView


/**
 * @author wkq
 *
 * @date 2021年07月06日 11:41
 *
 *@des
 *
 */

class HomeFragment : MvpBaseFragment<HomeView, HomePresenter, FragmentHomeBinding>() {

    companion object {

        fun newInstance(): HomeFragment {
            var mFragment = HomeFragment()
            return mFragment
        }

    }


    override fun getLayoutId(): Int {
        return R.layout.fragment_home
    }


    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        mvpView.initView()
        presenter.initData(activity)
    }

}